package com.example.consumer_order_feign_disabled_global.feign;

import com.example.consumer_order_feign_disabled_global.model.UserInf;
import org.springframework.stereotype.Component;

@Component
public class FeignCallback implements UserFeign {


    @Override
    public UserInf getById(String id) {
        UserInf userInf = new UserInf();
        userInf.setId(-1);
        userInf.setName("降级用户");
        userInf.setAge(999);
        return userInf;
    }
}
